/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: 
 * License Type: Evaluation
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Com_precioCriteria extends AbstractORMCriteria {
	public final DateExpression pre_id_precio;
	public final IntegerExpression pre_precioDia;
	
	public Com_precioCriteria(Criteria criteria) {
		super(criteria);
		pre_id_precio = new DateExpression("pre_id_precio", this);
		pre_precioDia = new IntegerExpression("pre_precioDia", this);
	}
	
	public Com_precioCriteria(PersistentSession session) {
		this(session.createCriteria(Com_precio.class));
	}
	
	public Com_precioCriteria() throws PersistentException {
		this(orm.Prueba1PersistentManager.instance().getSession());
	}
	
	public Com_precio uniqueCom_precio() {
		return (Com_precio) super.uniqueResult();
	}
	
	public Com_precio[] listCom_precio() {
		java.util.List list = super.list();
		return (Com_precio[]) list.toArray(new Com_precio[list.size()]);
	}
}

